home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / lib / python2.5 / dbhash.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-29  |  588b  |  21 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.5)
  3.  
  4. '''Provide a (g)dbm-compatible interface to bsddb.hashopen.'''
  5. import sys
  6.  
  7. try:
  8.     import bsddb
  9. except ImportError:
  10.     del sys.modules[__name__]
  11.     raise 
  12.  
  13. __all__ = [
  14.     'error',
  15.     'open']
  16. error = bsddb.error
  17.  
  18. def open(file, flag = 'r', mode = 438):
  19.     return bsddb.hashopen(file, flag, mode)
  20.  
  21.